package com.exchange.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.exchange.entity.pojo.PackageRecord;
import com.exchange.entity.pojo.Wallet;
import com.exchange.entity.vo.MyWalletVo;
import com.exchange.entity.vo.PackageVo;
import com.exchange.entity.vo.PackagecVo;
import com.exchange.until.Result;

import java.math.BigDecimal;

/**
* @author Administrator
* @description 针对表【wallet】的数据库操作Service
* @createDate 2024-04-25 20:02:10
*/
public interface WalletService extends IService<Wallet> {

    Result<String> buyPackage(String token);

    void ya(Wallet wallet,String token);

    void tui( String token);

    BigDecimal jia(PackageRecord packageRecord);

    void buys(PackageRecord packageRecord,String token);

    void xufei(PackageVo packageVo);

    BigDecimal xufeijiage(PackagecVo packagecVo);

    Result<MyWalletVo> getMyWallet(String token);

    boolean findWallets(String token);
}
